from collections import namedtuple

Person = namedtuple('Person', 'name age')

bob = Person(name='Bob', age=30)
print('Representation:', bob)
print('As Dictionary: ', bob._asdict())
